package com.nuanshui.heatedloan.credit.dal.mapper;

import com.nuanshui.heatedloan.credit.form.BankCardForm;
import com.nuanshui.heatedloan.credit.vo.BankCardVO;
import com.nuanshui.heatedloan.pageable.Pager;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zss
 * @date 2017/7/31 19:25
 * @description
 * @Since
 */
public interface BankCardMapper {

    /**
     * 获取所有银行列表
     * @param pager
     * @return
     */
    List<BankCardVO> loadBankCard(Pager<BankCardVO> pager);

    /***
     * 新增
     * @param bankCardForm
     */
    int saveBankCard(BankCardForm bankCardForm);

    /**
     * 修改
     * @param id
     * @param status
     */
    int updateBankCard(@Param("id") String id, @Param("status") String status);


    /**
     * @return
     */
    BankCardVO loadBankCardByObject(BankCardForm bankCardForm);

}
